package com.yenlien.traceyun.breed.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yenlien.traceyun.business.entity.TraceScanEntity;
import com.yenlien.traceyun.business.trace.Trace;

/**
 * 出场实体类
 *
 * @author maybe
 * @date 2020年9月25日
 */
@Entity
@Table(name = "t_breed_out")
public class Out extends TraceScanEntity {
    @Column
    private String breedId;                    //养殖ID
    @Column
    private String breedBatch;                //养殖批次
    @Column
    private String customerId;                //客户ID
    @Column
    private String customer;                //客户名称
    @Column
    private String outTime;                    //出场时间
    @Column
    private String outBatch;                //出场批次
    @Column
    private String principalId;                //负责人ID
    @Column
    private String principalName;            //负责人姓名
    @Column
    private String type;                    //编号类型(耳号、RFID、养殖批次号)
    @Column
    private int outNumber;                    //出场数量

    //====================================辅助字段====================================
    @Transient
    private List<OutDetail> outDetailList;    //出场列表
    @Transient
    private List<String> codeList;

    public String getBreedId() {
        return breedId;
    }

    public void setBreedId(String breedId) {
        this.breedId = breedId;
    }

    public String getBreedBatch() {
        return breedBatch;
    }

    public void setBreedBatch(String breedBatch) {
        this.breedBatch = breedBatch;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getOutBatch() {
        return outBatch;
    }

    public void setOutBatch(String outBatch) {
        this.outBatch = outBatch;
    }

    public String getPrincipalId() {
        return principalId;
    }

    public void setPrincipalId(String principalId) {
        this.principalId = principalId;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getOutNumber() {
        return outNumber;
    }

    public void setOutNumber(int outNumber) {
        this.outNumber = outNumber;
    }

    public List<OutDetail> getOutDetailList() {
        return outDetailList;
    }

    public void setOutDetailList(List<OutDetail> outDetailList) {
        this.outDetailList = outDetailList;
    }

    public List<String> getCodeList() {
        return codeList;
    }

    public void setCodeList(List<String> codeList) {
        this.codeList = codeList;
    }
}
